Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-1021: Fixed database DSN string generation #44

Open
wants to merge 1 commit into
base: 2.3
Choose a base branch
from

Conversation

kmadejski
Copy link
Member

Question Answer
JIRA issue IBX-1021
Bug/Improvement yes
New feature no
Target version 2.3
BC breaks no
Tests pass yes/no
Doc needed no

TODO:

  • Implement feature / fix a bug.
  • Ask for Code Review.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@kmadejski
Copy link
Member Author

Ping @ezsystems/php-dev-team since I can't ask for review directly

@webhdx webhdx requested a review from a team September 15, 2021 13:23
@alongosz
Copy link
Member

@kmadejski what are the steps to reproduce here?

@alongosz alongosz self-assigned this Sep 15, 2021
@alongosz alongosz added Bug Something isn't working Ready for QA labels Sep 15, 2021
@kmadejski
Copy link
Member Author

@kmadejski what are the steps to reproduce here?

I think an attempt to use DFS on Platform.sh would lead to this problem. I found it accidentally when I was about to reuse this piece of code for a different use case, hence no steps to reproduce in the ticket.

@micszo micszo self-assigned this Sep 21, 2021
Copy link
Member

@micszo micszo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be honest I have "no concrete feelings" on this change.

I tried the default DFS/NFS setup (https://doc.ibexa.co/en/3.3/guide/clustering/#configuring-the-dfs-io-handler) with Ibexa Commerce 3.3.8 on platform.sh on a development instance.

Without this change images and videos were properly stored in a separate dfs database in the ezdfsfile table. (The files were also stored in the dfsdata directory on p.sh.)
With this change images and videos were also stored in the separate database.

Without more information on your use case I cannot tell if this is necessary. 😄

@kmadejski
Copy link
Member Author

@micszo thanks for testing. It is a kind of mystery to me then, as this fragment of code is supposed to generate DSN used later on by doctrine for establishing a connection to the DFS database. I think it is clear to all reviewers that the previous version is clearly wrong. Another question would be: why and how this is overwritten on the cloud so it works fine?

@alongosz
Copy link
Member

I need to investigate this deeper then, expected different outcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

5 participants